var index = 0;
var sum = 0;
while(index < 100){
    sum = sum + index;
    index++
}
return sum;